package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.AdministrativeAreaResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AdministrativeAreaCasesNumberMapper;
import com.ruoyi.system.domain.AdministrativeAreaCasesNumber;
import com.ruoyi.system.service.IAdministrativeAreaCasesNumberService;

/**
 * 行政公益诉讼领域情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-23
 */
@Service
public class AdministrativeAreaCasesNumberServiceImpl implements IAdministrativeAreaCasesNumberService 
{
    @Autowired
    private AdministrativeAreaCasesNumberMapper administrativeAreaCasesNumberMapper;

    /**
     * 查询行政公益诉讼领域情况
     * 
     * @param id 行政公益诉讼领域情况主键
     * @return 行政公益诉讼领域情况
     */
    @Override
    public AdministrativeAreaCasesNumber selectAdministrativeAreaCasesNumberById(Long id)
    {
        return administrativeAreaCasesNumberMapper.selectAdministrativeAreaCasesNumberById(id);
    }

    /**
     * 查询行政公益诉讼领域情况列表
     * 
     * @param administrativeAreaCasesNumber 行政公益诉讼领域情况
     * @return 行政公益诉讼领域情况
     */
    @Override
    public List<AdministrativeAreaCasesNumber> selectAdministrativeAreaCasesNumberList(AdministrativeAreaCasesNumber administrativeAreaCasesNumber)
    {
        return administrativeAreaCasesNumberMapper.selectAdministrativeAreaCasesNumberList(administrativeAreaCasesNumber);
    }

    @Override
    public List<AdministrativeAreaResult> selectAdministrativeAreaResult(AdministrativeAreaCasesNumber administrativeAreaCasesNumber)
    {
        return administrativeAreaCasesNumberMapper.selectAdministrativeAreaResult(administrativeAreaCasesNumber);
    }

    /**
     * 新增行政公益诉讼领域情况
     * 
     * @param administrativeAreaCasesNumber 行政公益诉讼领域情况
     * @return 结果
     */
    @Override
    public int insertAdministrativeAreaCasesNumber(AdministrativeAreaCasesNumber administrativeAreaCasesNumber)
    {
        administrativeAreaCasesNumber.setCreateTime(DateUtils.getNowDate());
        return administrativeAreaCasesNumberMapper.insertAdministrativeAreaCasesNumber(administrativeAreaCasesNumber);
    }

    /**
     * 修改行政公益诉讼领域情况
     * 
     * @param administrativeAreaCasesNumber 行政公益诉讼领域情况
     * @return 结果
     */
    @Override
    public int updateAdministrativeAreaCasesNumber(AdministrativeAreaCasesNumber administrativeAreaCasesNumber)
    {
        administrativeAreaCasesNumber.setUpdateTime(DateUtils.getNowDate());
        return administrativeAreaCasesNumberMapper.updateAdministrativeAreaCasesNumber(administrativeAreaCasesNumber);
    }

    /**
     * 批量删除行政公益诉讼领域情况
     * 
     * @param ids 需要删除的行政公益诉讼领域情况主键
     * @return 结果
     */
    @Override
    public int deleteAdministrativeAreaCasesNumberByIds(Long[] ids)
    {
        return administrativeAreaCasesNumberMapper.deleteAdministrativeAreaCasesNumberByIds(ids);
    }

    /**
     * 删除行政公益诉讼领域情况信息
     * 
     * @param id 行政公益诉讼领域情况主键
     * @return 结果
     */
    @Override
    public int deleteAdministrativeAreaCasesNumberById(Long id)
    {
        return administrativeAreaCasesNumberMapper.deleteAdministrativeAreaCasesNumberById(id);
    }
}
